<!DOCTYPE html>
<!-- saved from url=(0065)http://m.smallbearshop.net/bearshop/index.php?act=index&op=mobile -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="format-detection" content="telephone=no">
<title>推荐商家</title>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery.js"></script>
<link rel="stylesheet" href="<?php echo TEMPLATE_SITE_URL;?>/css/flickity-docs.css">
<link rel="stylesheet" href="<?php echo TEMPLATE_SITE_URL;?>/css/recommendstore.css">

<script src="<?php echo RESOURCE_SITE_URL;?>/js/flickity-docs.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){

	$(".main_visual").hover(function(){
		$("#btn_prev,#btn_next").fadeIn()
	},function(){
		$("#btn_prev,#btn_next").fadeOut()
	});
	
});
</script>

</head>
<body>
<div id="contentbox">
  <div class="excelTitle">
		<a href="index.php?act=index">关注</a>
		<a href="index.php?act=jingxuan">精选</a>
     	<div class="new">NEW</div>
     	<a href="javascript:;" class="on">推荐商家</a>
     	<div class="new1">NEW</div>
  </div>

  <div class="userinfoMain">
    <div class="recommendTop">
      <div class="recommentBottom">
      <div class="rTitle"><img src="<?php echo TEMPLATE_SITE_URL;?>/images/rTitle.jpg"></div>
      <div class="picList">
         <div class="content-wrap">
		<div class="example duo">
			<div class="example__demo duo__cell">
				<div class="gallery js-flickity" data-flickity-options='{ "wrapAround": true }'>
					<?php if(!empty($output['recommendstore'])){?>
					<?php foreach($output['recommendstore'] as $val){?>
					<div class="gallery-cell"><a href="index.php?act=index&seller_id=<?php echo $val['user_id'];?>"><img src="<?php echo $val['avatar'];?>"></a><p><?php echo $val['nickname'];?></p></div>
					<?php }?>
                    <?php }?>
				</div>
			</div>
		</div>
	</div>
      </div>
      </div>
    </div>
    <div class="recommentList">
      <ul class="recommenddata">

        <div class="clear"></div>
      </ul>
    </div>
  </div>
</div>

<input type="hidden" name="haspage" value="1" id="haspage">
<input type="hidden" name="pagenum" value="0" id="pagenum">
<div class="loadNextPage" style="margin-top:10px;color:#777;text-align:center;font-size:13px;display:none;">
	<div class="loading" style="width:100px;height:40px;margin-left:auto;margin-right:auto">
		<img src="<?php echo TEMPLATE_SITE_URL;?>/images/loadingData.gif" style="float:left">
		<span style="float:left;margin-top:10px;">加载拍卖</span>
	</div>
</div>

<script type="text/javascript">
$(function(){

    $(window).scroll(function () {
        var $body = $("body");
        if (($(window).height() + $(window).scrollTop()) >= $body.height()) {
	        var haspage = parseInt($('#haspage').val());
	        if(haspage=='0'){
				return false;
			}
    		var pagenum = parseInt($('#pagenum').val());
    		var nextpage = eval(pagenum+1);
    				
    		ajaxdata(nextpage);
        }
    });

    function ajaxdata(nextpage){
        
		$.ajax({
			type:'get',
			url:'index.php?act=jingxuan&op=recommendstoredata',
			data:{nextpage:nextpage},
			dataType:'html',
			success:function(html){
				$('.loadNextPage').hide();
				if(html==''){
					$('#haspage').val('0');
				}else{
					$('#pagenum').val(nextpage);
					$('.recommenddata').append(html);
				}			
				
			},
			beforeSend:function(){
				$('.loadNextPage').show();
			}
		});
    }
    
    ajaxdata(1);
});
</script>

<script type='text/javascript'>
	$(function(){		
		var time = parseInt("<?php echo TIMESTAMP;?>");
		$('.process').each(function(){
			var lag = parseInt($(this).attr('endtime')) - time;
			if(lag>0){
			   var second = Math.floor(lag % 60);    
			   var minite = Math.floor((lag / 60) % 60);
			   var hour = Math.floor((lag / 3600) % 24);
			   var day = Math.floor((lag / 3600) / 24);
			   $(this).html('<span style="font-size:12px;">&nbsp;'+day+'&nbsp;</span>'+'<?php echo $lang['bearshop_day'];?>'+'<span style="font-size:12px;">&nbsp;'+hour+'&nbsp;</span>'+'<?php echo $lang['bearshop_hour'];?>'+'<span style="font-size:12px;">&nbsp;'+minite+"&nbsp;</span>"+'<?php echo $lang['bearshop_minute'];?>'+'<span style="font-size:12px;">'+second+'</span>');
			}
		});
		function updateEndTime(){
			time++;		
			$(".process").each(function(){
				var lag = parseInt($(this).attr('endTime')) - time;
				if(lag>0){
				    var second = Math.floor(lag % 60);    
				    var minite = Math.floor((lag / 60) % 60);
				    var hour = Math.floor((lag / 3600) % 24);
				    var day = Math.floor((lag / 3600) / 24);
					$(this).html('<span style="font-size:12px;">&nbsp;'+day+'&nbsp;</span>'+'<?php echo $lang['bearshop_day'];?>'+'<span style="font-size:12px;">&nbsp;'+hour+'&nbsp;</span>'+'<?php echo $lang['bearshop_hour'];?>'+'<span style="font-size:12px;">&nbsp;'+minite+"&nbsp;</span>"+'<?php echo $lang['bearshop_minute'];?>'+'<span style="font-size:12px;">&nbsp;'+second+'&nbsp;</span>');
				}
			});
			setTimeout(updateEndTime,1000);
		}
		setTimeout(updateEndTime,1000);
	});
</script>
</body>
</html>
